home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
BORLAND TURBO
/
STEP16.PAK
/
STEP16.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-06
|
1KB
|
48 lines
//----------------------------------------------------------------------------
// ObjectWindows - (C) Copyright 1994 by Borland International
// Tutorial application -- step16.h
// Automation Server example
//----------------------------------------------------------------------------
#if !defined(STEP16_H)
#define STEP16_H
class TDrawDocument;
class TDrawApp : public TApplication, public TOcModule {
public:
TDrawApp();
protected:
TMDIClient* Client;
// Override methods of TApplication
void InitInstance();
void InitMainWindow();
// Event handlers
void EvNewView(TView& view);
void EvCloseView(TView& view);
void EvDropFiles(TDropInfo dropInfo);
void CmAbout();
private:
// Automation entry points
void SetShow(bool visible);
bool GetShow();
TDrawDocument* AddDoc();
TDrawDocument* OpenDoc(const char far* name = 0);
const char far* GetPath();
// method of TModule ==> const char far* GetName()
DECLARE_RESPONSE_TABLE(TDrawApp);
DECLARE_AUTOAGGREGATE(TDrawApp)
AUTOPROP (Visible, GetShow,SetShow, TBool, )
AUTOFUNC0 (NewDoc, OpenDoc, TAutoObject<TDrawDocument>, )
AUTOFUNC1 (OpenDoc, OpenDoc, TAutoObject<TDrawDocument>,TAutoString,)
AUTOPROPRO(AppName, GetName, TAutoString, )
AUTOPROPRO(FullName,GetPath, TAutoString, )
};
#endif